package cosmos.dubbo.service;

import cosmos.dubbo.domain.User;
import cosmos.dubbo.dto.UserDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * .
 *
 * @author sunhao(sunhao.java@gmail.com)
 * @version V1.0, 2016-2-4 10:26
 */
public interface UserService {
    Long save(UserDto userDto);

    Long delete(Long id);

    Long update(UserDto userDto);

    User loadUser(Long id);

    Page<User> list(Pageable pageable);
}
